@include('admin.public.header')
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    @include('admin.public.sidebar');

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">                
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                添加文章
                <small><a href="{{route('admin.user.index')}}">文章列表</a></small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li class="active">所有文章</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
			<div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">所有文章列表</h3>
                        </div><!-- /.box-header -->
                        {{Form::open(array('route'=>'admin.user.store','files'=>true))}}
                            <div class="box-body table-responsive no-padding">
                                <div class="box-body">
                                    <div class="form-group">
                                        {{Form::label('标题')}}
                                        {{Form::text('title','',array('class'=>'form-control','placeholder'=>'请输入标题'))}}
                                    </div>
                                    <div class="form-group">
                                        {{Form::label('封面')}}
                                        {{Form::file('thumbnail_image')}}
                                    </div>
                                    <div class="form-group">
                                        {{Form::label('分类')}}
                                        {{Form::select('cate_id',$cates,'',array('class'=>'form-control'))}}
                                        
                                    </div>
                                    <div class="form-group">
                                        {{Form::label('内容')}}
                                        {{Form::textarea('content','',array('class'=>'form-control','id'=>'user-description'))}}
                                        <!-- CK Editor -->
                                    <script src="/style/admin/js/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>
                                    <script type="text/javascript">
                                        $(function() {
                                            CKEDITOR.replace('user-description');
                                        });
                                    </script>

                                    </div>
                                    <div class="checkbox">
                                        <label>
                                            <div class="icheckbox_minimal" aria-checked="false" aria-disabled="false" style="position: relative;">
                                                {{Form::checkbox('status','',true,array('style'=>'position:absolute;opacity:0;'))}}
                                                <ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background-color: rgb(255, 255, 255); border: 0px; opacity: 0; background-position: initial initial; background-repeat: initial initial;"></ins></div> 激活
                                        </label>
                                    </div>
                                </div><!-- /.box-body -->

                                <div class="box-footer">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div><!-- /.box-body -->
                        {{Form::close()}}
                    </div><!-- /.box -->
                </div>
            </div>
        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->


        